<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2017/10/26
  Time: 12:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title><s:message code="M_1700_PACK_MANAGEMENT_TAG" /></title>
    <%@ include file="/page/comPage/comCSS.html"%>
    <%@ include file="/page/comPage/navbar.html"%>
    <style>
        #leftDiv,#middleDiv,#rightDiv{
            margin-top:10px;
        }
        #maxCntTxt,#curCntTxt{
            margin-left:165px;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="col-lg-12 btnDivCss">
        <button class="btn btn btn-info" id="query_btn">载入包装明细</button>
        <button class="btn btn-success"  id="save_btn"> 包装出账</button>
        <button class="btn btn-warning"  id="clean_btn">单片取消包装</button>
        <button class="btn btn-danger"  id="clean_box_btn">整箱取消包装</button>
    </div>
    <div id="leftDiv" class="col-lg-5 col-md-5 col-sm-5" >
        <div class="col-lg-12 col-md-12 col-sm-12">
            <fieldset>
                <legend>查询条件</legend>
            </fieldset>
            <form  class="col-lg-12 col-md-12 col-sm-12 form-horizontal">
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="toolIdFk">
                        <s:message code="TOOL_ID_TAG" />
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <select id="toolIdFk" class="form-control" style="width: 100%"></select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                        <s:message code="SHEET_ID_TAG" />
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <input type="text" id="prdSeqId"  class="form-control"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="nWeight">
                        净重(kg):
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <input type="text" id="nWeight"  class="form-control"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="gWeight">
                        毛重(kg):
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <input type="text" id="gWeight"  class="form-control"/>
                    </div>
                </div>
            </form>
        </div>

        <div class="col-lg-12 col-md-12 col-sm-12">
            <fieldset>
                <legend>产品信息</legend>
            </fieldset>
            <form  class="col-lg-12 col-md-12 col-sm-12 form-horizontal">
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                        <s:message code="SHEET_ID_TAG" />:
                    </label>
                    <div class="controls col-lg-6 col-md-6 col-sm-6">
                        <span type="text" id="prdouctId"  />
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                        <s:message code="MDL_ID_TAG" />:
                    </label>
                    <div class="controls col-lg-6 col-md-6 col-sm-6">
                        <span type="text" id="mdlIdFk"  />
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                        <s:message code="MDL_GRADE_TAG" />:
                    </label>
                    <div class="controls col-lg-6 col-md-6 col-sm-6">
                        <span type="text" id="prdGrade"  />
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                        <s:message code="LOT_ID_TAG" />:
                    </label>
                    <div class=" controls col-lg-6 col-md-6 col-sm-6">
                        <span type="text" id="lotId"  />
                    </div>
                </div>
                <%--<div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="factoryId">
                        <s:message code="FACTORY_ID_TAG" />
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6" >
                        <input type="text" id="factoryId" class="form-control" disabled />
                    </div>
                </div>--%>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="bayId">
                        <s:message code="BAY_AREA_TAG" />:
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6" >
                        <span type="text" id="bayId"  />
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-lg-3 col-md-3 col-sm-3" for="woIdFk">
                        <s:message code="WO_ID_TAG" />:
                    </label>
                    <div class="col-lg-6 col-md-6 col-sm-6" >
                        <span type="text" id="woIdFk"  />
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div id="rightDiv" class="col-lg-7 col-md-7 col-sm-7" >
        <div class="col-lg-12 col-md-12 col-sm-12">
            <fieldset>
                <legend>装箱列表</legend>
            </fieldset>
                <div id="boxListDiv"  >
                <table id="boxListGrd"></table>
                <div id="boxListPg"></div>
            </div>
        </div>
    </div>
</div>
<div id="packDialog" class="modal fade" tabindex="-1"role="dialog" aria-labelledby="title" aria-hidden="true">
    <div class="modal-dialog" style="width:650px;">
        <div class="modal-content">
            <!-- 模框头部 -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×</button>
                <h4 class="modal-title">包装信息</h4>
            </div>
            <!-- 模框主体 -->
            <div class="modal-body">
                <div class="container-fluid" id="divTotal">
                    <div class=" col-lg-12 col-md-12 col-sm-12">
                        <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                            请输入产品ID
                        </label>
                        <div class="col-lg-6 col-md-6 col-sm-6">
                            <input type="text" id="prd_seq_id"  class="form-control"/>
                        </div>
                    </div>
                </div>
                <!-- 模框底部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary"
                            id="prd_sureBtn">
                        <s:message code="SURE_COMMIT_TAG" />
                    </button>
                    <button type="button" class="btn btn-default" data-dismiss="modal"
                            id="prd_cancelBtn">
                        <s:message code="CANCEL_TAG" />
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="productDialog" class="modal fade" tabindex="-1"role="dialog" aria-labelledby="title" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <!-- 模框头部 -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×</button>
                <h4 class="modal-title">玻璃信息</h4>
            </div>
            <!-- 模框主体 -->
            <div class="modal-body">
                <div class="container-fluid" id="divTotals">
                    <div class=" col-lg-12 col-md-12 col-sm-12">
                        <fieldset>
                            <legend>玻璃列表</legend>
                        </fieldset>
                        <div id="productListDiv"  >
                            <table id="productListGrd"></table>
                            <div id="productListPg"></div>
                        </div>
                    </div>
                </div>
                <!-- 模框底部 -->
                <div class="modal-footer">
                   <%-- <button type="button" class="btn btn-primary"
                            id="prduct_sureBtn">
                        <s:message code="SURE_COMMIT_TAG" />
                    </button>--%>
                    <button type="button" class="btn btn-default" data-dismiss="modal"
                            id="prduct_cancelBtn">
                        <s:message code="CANCEL_TAG" />
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>


<div id="packdelDialog" class="modal fade" tabindex="-1"role="dialog" aria-labelledby="title" aria-hidden="true">
    <div class="modal-dialog" style="width:650px;">
        <div class="modal-content">
            <!-- 模框头部 -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×</button>
                <h4 class="modal-title">包装信息</h4>
            </div>
            <!-- 模框主体 -->
            <div class="modal-body">
                <div class="container-fluid" id="divTotalM">
                    <div class=" col-lg-12 col-md-12 col-sm-12">
                        <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                            请输入产品ID
                        </label>
                        <div class="col-lg-6 col-md-6 col-sm-6">
                            <input type="text" id="prd_id_fk"  class="form-control"/>
                        </div>
                    </div>
                </div>
                <!-- 模框底部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary"
                            id="prdSureBtn">
                        <s:message code="SURE_COMMIT_TAG" />
                    </button>
                    <button type="button" class="btn btn-default" data-dismiss="modal"
                            id="prdCancelBtn">
                        <s:message code="CANCEL_TAG" />
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>

<%--<div id="WeightDialog" class="modal fade" tabindex="-1"role="dialog" aria-labelledby="title" aria-hidden="true">
    <div class="modal-dialog" style="width:650px;">
        <div class="modal-content">
            <!-- 模框头部 -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×</button>
                <h4 class="modal-title">打印标签</h4>
            </div>
            <!-- 模框主体 -->
            <div class="modal-body">
                <div class="container-fluid">
                    <div class=" col-lg-12 col-md-12 col-sm-12">
                        <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                            净重(kg):
                        </label>
                        <div class="col-lg-6 col-md-6 col-sm-6">
                            <input type="text" id="nWeight"  class="form-control"/>
                        </div>
                    </div>
                    <div class=" col-lg-12 col-md-12 col-sm-12">
                        <label class="control-label col-lg-3 col-md-3 col-sm-3" for="prdSeqId">
                          毛重(kg):
                        </label>
                        <div class="col-lg-6 col-md-6 col-sm-6">
                            <input type="text" id="gWeight"  class="form-control"/>
                        </div>
                    </div>
                </div>
                <!-- 模框底部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary"
                            id="weightSureBtn">
                        <s:message code="PRINT_TAG" />
                    </button>
                    <button type="button" class="btn btn-default" data-dismiss="modal"
                            id="weightCancelBtn">
                        <s:message code="CANCEL_TAG" />
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>--%>
<%@ include file="/page/comPage/comJS.html"%>
<%@ include file="/page/comPage/printJS.html"%>
<script src="js/page/1000/1700.js"></script>
</body>
</html>